package _1ChapterOne._2InlineMethod;

public class Test {
    int number;

    public int getRatingOld() {
        return moreThenFiveNumber() ? 1 : 2;
    }

    public boolean moreThenFiveNumber() {
        return number > 5;
    }

    public int getRatingNew() {
        return number > 5 ? 1 : 2;
    }
}
